<div class="review_view_page">
<?php
	//@Video Inteaction.
	echo $this->element('reviews', array('reviews' => array($review),'view_type'=>'blog_view'));
?>

<?php
$moderationOnComment = cr('ReviewConfig.use_moderation_on_comment');
$allowComment = cr('ReviewConfig.allow_comment');
$commentStatus = ReviewComment::PUBLISH;
if($moderationOnComment)
{
	$commentStatus = ReviewComment::UNPUBLISH;
}
if($allowComment)
{?>
<?php
	echo $comment->show(array('model'=>"ReviewComment","recursive"=>0,"order"=>"ReviewComment.created DESC","conditions"=>array("ReviewComment.status"=>ReviewComment::PUBLISH,'ReviewComment.review_id'=>$review['Review']['id']),'cache'=>false));
?>
<?php
	$ajaxParam = '';
	if($this->params['isAjax'] == '1' || (isset($this->params['url']['ajax']) && $this->params['url']['ajax'] == 1))
	{
		$ajaxParam = '?ajax=1';
	}
	echo $comment->showForm('ReviewComment',$review['Review']['id'],'Review',array('url'=>array('controller'=>'review_comments','action'=>"add",$review['Review']['id'].$ajaxParam),'commentStatus'=>$commentStatus));
}
?>	
</div>